package com.ysjy.course.mapper;

import com.wkbb.common.base.BaseMapper;
import com.ysjy.course.dto.AttendDto;
import com.ysjy.course.dto.CourseAttendDto;
import com.ysjy.course.model.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AttendMapper extends BaseMapper<CourseAttend> {

    int insertAttendLeave(CourseAttendLeave data);

    List<CourseAttendLeave> findAttendLeaveList(Map<String, Object> map);

    int insertCourseTimeFeedback(CourseTimeFeedback data);

    List<CourseTimeFeedback> findCourseFeedTimebackList(Map<String, Object> map);

    int insertCourseFeedback(CourseFeedback data);

    List<CourseFeedback> findCourseFeedbackList(Map<String, Object> map);

    List<CourseAttendDto> getCourseTimeAttendStuList(Map<String, Object> params);

    int clearAttendByCourseTimeId(@Param("courseTimeId") Long courseTimeId);

    List<AttendDto> getCourseTimeAttendListByPage(Map<String, Object> params);
}
